package com.xms.event.core;

import org.springframework.context.ApplicationEvent;

/**
 * <p>
 * 对象删除后事件
 * </p>
 *
 * @author migo
 * @since 2021/9/26
 */
/*
public class ObjectDeletedEvent<TEntity> implements IEvent {
    public ObjectDeletedEvent(String $moduleName, TEntity $source) {
        moduleName = $moduleName;
        source = $source;
    }

    public TEntity source;

    public String moduleName;
}*/


public class ObjectDeletedEvent<TEntity> extends ApplicationEvent {
    public ObjectDeletedEvent(String $moduleName, TEntity $source) {
        super($source);
        this.moduleName = $moduleName;
        this.source = $source;
    }

    public TEntity source;

    public String moduleName;
}
